package com.bwie.service.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.Group;
import com.bwie.mapper.GroupMapper;
import com.bwie.service.GroupService;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class GroupServiceImpl extends ServiceImpl<GroupMapper, Group> implements GroupService{
    @Autowired
    private GroupMapper groupMapper;
    @Override
    public R getGroupList(PageInfoVo pageInfoVo) {
        Page<Group> page = new Page<>(pageInfoVo.getPageNum(), pageInfoVo.getPageSize());
        Page<Group> page1 = groupMapper.getGroupList(page,pageInfoVo);
        return R.OK(page1);
    }
}
